package com.lengmou.service;

import com.lengmou.entity.OrdersInfo;

import java.util.List;
import java.util.Map;

public interface OrdersInfoService {
//  获取所有的订单详情
    public List<OrdersInfo> getAll();
//    根据id获取订单详情
    public OrdersInfo getInfoById(String id);
//    根据订单id获取订单详情
    public List<OrdersInfo> getInfoByOrdersId(int ordersId);
//    查询订单 详情
    public List<OrdersInfo> search(Map<String,Object> map);
//    添加订单详情
    public int addOrdersInfo(OrdersInfo info);
//    修改订单详情商品id
    public int setInfoGoodsId(OrdersInfo info);
//    修改订单详情订单id
    public int setInfoOrdersId(OrdersInfo info);
//    修改订单详情数量
    public int setInfoNum(OrdersInfo info);
//    删除订单详情
    public int deleteOrdersInfo(String id);

    public int deleteByOrdersid(int ordersid);

}
